Change Python-style to JavaScript-style comments.
Fix a bug in rgb2hex.

Small values would be converted to single-digit hexadecimal values
because of an incorrect length calculation.
More tweaks to comments.
Remove handles argument in curvePoint.

This argument is no longer used.
The snap function is now under g.math.snap.

The function is useful in its own right, not just inside the g.snap
filter.
g.ungroup is more resilient.

It can properly handle null values and non-shapes.
reflectPath uses better branching logic.
Wiggle has better branching logic.
Use seg/segments instead of elem/elems.
Fix branching logic in Matrix3.transformPath.
g.delete throws an error on unknown scope.
Fix typo in g.math.snap.
Add unit tests for g.math.snap.