seems all of the remaining issues have to do with we getting back stdClass instead of an array at some point. it looks like zendphp can treat stdclass as array, but hhvm not.

maybe we could simply change the json_decode to always decode to array and never stdClass (second parameter) but that needs changes in several places. its an oddity already, annoying because doctrine-dbal would be simpler without the need for stdClass.