make HHVM happy with ArrayObject instances used in certain array functions
Merge pull request #138 from phpcr/hhvm

make HHVM happy with ArrayObject instances used in certain array functions