Call getQualifiers and getReferences outside of iterator_to_array for getAllSnaks

Think this might be an issue with bug 71519 with the Traversable
object somewhere being converted to an array, in some situations.