Simplify code, and remove unnecessary template usage in dynamic_update_slice to reduce target binary size.
Simplify code, and remove unnecessary template usage in dynamic_update_slice to reduce target binary size.

Always convert indice into int64 before processing.
