BigNumber: refactoring, O(1) stack allocator for asm.js module, tests, fixes