Make get_move_field more flexible

It is better to guess the transformation depending on the value and field type.
This allow to reuse this method for other fields.

issue4170
review6511002