Local transformations of units in scalar-tensor cosmology