added possibility to map an instance

copy of https://github.com/alebianco/robotlegs-utilities-macrobot/pull/12#issuecomment-59611959