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.
Merge pull request #559 from SemanticMediaWiki/rfc-555

Reset after QueryResult::serializeToArray