Fix object parameters on meshes and other things that call replace_obj

This fixes, for example, the position argument on meshes.