#59 (closed), improves on changes made for #42 (only add time dimension if not already present in the array)