Fix conversion of successive Gaia plural units

When a plural unit is followed by another one, we were failing to output
the first one. Another repeated code block, but that is for the next
commit.
Refactor code repetitions
Add Gaia roundtrip script

Based on roundtrip-mozilla one.