Combined register_canonicalize_tags and register_canonicalize.