Internal function to get the array element references of the time dimension for the time based slots of a MizerSim object.
get_time_elements(sim, time_range, slot_name = "n")
A MizerSim object
The time_range can be character or numeric.
Necessary to include a slot_name argument because the effort and abundance slots have different time dimensions