Added support for polymorphic query results (refs ERRAI-645)
Added the ability to query on an entity class which subclasses another entity. (refs ERRAI-645)