Add mkIndexedName utility function.