fix few warnings
fix multiples errors
revert direct access to top mode
size_t => int (sufficient, --warning)
macro => function + make valgrind happy
this line is useless now
JSON conformance on [0;0x2F]