Backport library code from webgl-vector branch.
Removes assignments within expressions.
Split batch preparation.
Factor out test data
Fix enum definition Parameters -> Parameter
Add 2D vector operations
Add polygon simplification experiment