updates to Handler::handles method. now checks to base classes, traits, and interfaces