Code cleanup and speedup

Code cleanup (after minification saved ~500 bytes)
- remove unused code
- declare references for Math functiona
- use undefined consistently, short-circuiting, existing functionality, computed values, ...
- clean structure of some conditions

Code speedup
- optimize leftZeroFill by ~20%, benchmark added
- optimize map