Memory leak fix and improved didMapObjectFromJSON method.

I tried to use the latest code from @mystcolor, refactoring the
JTMappingBlockWrapper class that @timehop created by leveraging the
easier mapping extension model. I ran into a bunch of issues with
implicit mappings not working as expected, and had to go back to a fork
from timehop's older code.