keep order of projected variables and expressions - fixes https://github.com/RDFLib/rdflib-sparql/issues/9
fix doctests for py3