HHVM workarounds

makes test pass under HHVM
`$iterator` is not an iterator.