Include stats.js in distribution so all examples can work.
Fix issues with uglifyjs.

Workarounds so far, needs proper fixing in uglifyjs.