Finalizing the stack-frames branch.

 * expressions can now be inlined across `order by` clauses
 * *FLWOR* clauses are now checked for updates
 * inlined expressions are now always copied
 * static variables are now allowed to be declared after being used in XQuery 3.0