applyMapObjectValueTo returns undo command. Provides a more accurate text for the macro.
Fixed currentObjects function.
Made currentObjects not inline, fixed other problems with function.
objects parameter in undo commands is now a const and reference.
applyMapObjectValue no longer applies the changes to the current object twice.