Expressions now use the target variable list to generate the permutation.
Corrected some errors in the permutation expression unit test.
Minor changes to code to Expr for readability.