Fix implementation of codableProperties to not attempt to encode NSManagedObject