Fix test failures caused by PHP BC breaks.

We can no longer instantiate `ArrayObject` without calling its constructor in
PHP 5.4/5.5. Since we were only using it as a generic fixture, replace
`ArrayObject` with `stdClass`.