Call getQualifiers and getReferences outside of iterator_to_array

In the getAllSnaks calls in Claim and Statement, it seems in some situations that the Traversable objects are being converted to array, by reference, in the ReferenceList itself and possibly for qualifiers also.

This change may help fix bug 71519.
this is a similar issue as bug 71519.  based on how we fixed that, I think a clone is not needed