Added test for #507 (AsClosedTypesOf does not register component as non-generic interface)
Added IsClosedTypeOf() method that takes all ancestors into account
fix for #507 (AsClosedTypesOf does not register component as non-generic interface)
Merge pull request #526 from alexandrnikitin/Issue507_AsClosedTypesOf_bug

Fix for #507 AsClosedTypesOf does not register component as non-generic interface