Add support for variable transforms - refs #163, and improve test covera...

Fixes #163