Moved code that is valid for any <GTWTree> implementation into a category on NSObject.
Added initial support for models and stores to optionally participate in query planning.
Improved recognition of aggregate projection restrictions (reducing cases of false positives).