Accept a destination array for transforms

This allows in-place transforms.