Added support for querying for members in a collection

This also fixes an insiduous problem where the metadata reset was
thwarted by the OrmAttributeInspector caching instrumented attributes
(triggering an "ambiguous column" OperationalError from SQLAlchemy)