Generalize `TranscoderRegistry` to a general registry that indexes objects by attributes