Add resource_class_path_array helper and use it for indexes