Fix for broken Coredata accessors for ordered relationships

This bug is a show stopper for many people, and i found a fix that works 100% of the time.

See discussion on this page :
http://stackoverflow.com/questions/7385439/exception-thrown-in-nsorderedset-generated-accessors