Reset after QueryResult::serializeToArray

If one wants to check `QueryResult::getHash` before working with the
object it is currently not possible because `serializeToArray` forwards
the array position.