fix some bugs; optimize some code;

* fix bug: modify '0x3f' to '0x1f' in func strdecode; use strdecode in test
* fix bug: call copyArray only when body is not null
* optimize func Message.decode
* use '<<' to replace 'Math.pow'