MDL-46155 core_component: more flexibility in get_plugin_list_with_class()