support registering formatters also for all sub-classes of a given class