NSManagedObject to JSON-ready dictionary and back again (Does not handle relationships)