Fixes cirular references detection in PhantomReporter.js.

The logic which was in place to convert array-like objects to arrays
prevented the circular reference detection to work properly for arrays
and array-like objects.