Fix behavior of partial application of transform_along