Explicitly cast ArrayObject to array for reset()

HHVM does not support objects in reset(). See:
https://github.com/facebook/hhvm/blob/master/hphp/doc/inconsistencies#L90

This change should not incur a performance penalty because this function
is not actually used anywhere currently besides in tests.