A general interface for symbolic indexing of SciML objects used in conjunction with Domain-Specific Languages