First crack at binary decoder
Fix defineShape() asm.js implementation. Now compatible with the original parser.