changed introspection of collection to determine class
Merge pull request #1 from eyefodder/collection_decorator_issue

changed introspection of collection to determine class