Go port of simplify-js (https://github.com/mourner/simplify-js)