fixed bugs from refactoring
Merge branch 'client_porting_typescript' into fix_porting
fixed bug on AST.constructor
fixed dnode.encode, to be out of stack overflow
Merge pull request #52 from shidasan/fix_porting

Fix porting