Some fixes for PHP and JS tree builders
Schemas tree verifyier