Bundle up some transforms.
Remove trailing z:s, round some coords and turn "0." to ".".