Fixed a bug: calling setTimeDimension would always change the dimension to a time dimension.