Various optimization fixes. ->getJsonSchema() return a array instead of a stdClass