Keeps track of result sequences and their expressions (this is not in
XQJ,a real weakness), closes both when we have read in a sequence to
Scala world. There is a 1:1 relationship between the two, and XQJ closes
sequence when its expression is closed, but not vice-versa.