Fixes: lp:1793357 * https://bugs.launchpad.net/kicad/+bug/1793357
Also fixes a units bug when round-tripping a dimension through the file format. Fixes: lp:1782797 * https://bugs.launchpad.net/kicad/+bug/1782797
(cherry picked from commit 63b7738)