minor changes to C++ version in prep for optimizations
minor touchups
take a copy before emiting
fix crazy ugly formatting
Merge branch 'master' into jacek_branch

Conflicts:
	hellwigs-method.js
don't slice any more