For-in doesn't work on some instances of meta data.
Adds support for ORM entity collections. Needs UTs.