Transformations as interfaces. Bugs in generalized query fixed.