Properly rference generated managed objects in core data schema