Fixed explicit swapping in substitution example.
Added example for structural equality.