Add round-tripping to coordinate conversion

This needs some more comments and tests