updated get_nc_variable so that it will add singleton time dimension when necessary, since Matlab sometimes gets rid of singleton dimensions when reading in files.