asm.js: support more i/o cases scalar/vector/matrix