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

Fix for #507