util img: ensure the rotation metadata is always 0< 2 pi

Not fully necessary, but simplifies some code.
dataio: merge correction metadata before saving data

This correction information is extremely important, so make sure we save it,
even if the raw information has to be merged.