bugfix: don't mess up the order of arguments when displaying in pathExpression
account for duplicate pathExpressions; add a few more cases