Subclass interfaces

Fixes NullReferenceExceptions caused by a null type.BaseType when the subclass type is an interface.