Uses handler for values of type and its subtypes, replacing the one registered for type.
Uses handler for values of T and its subtypes, replacing the one registered for T.