Refactor parser(Fixed double free & Memleaks), Fixed build with 5.2-5.4

1. it can be compiled with PHP-5.2 ~ PHP-5.4
2. previously, you copy zval without deep copy, it will cause double free when %destruct is called.
3. fixed some macro defined

now, mosts tests of ext/json are passed (failed tests are most due to warning message)