Added DIM_NAMES keyword to MG_NC_PUTDATA so that dimension names can be specified.