Implementing generic ManagedObject/JSON mapper for CoreData