Fixed dynamic put and load to return correct runtime types

USERGRID-1185