Also corrected bugs in the inverse transform function and added tmp<Field> transform functions for efficiency.