Fixed a potential bug in the prune step transform in which checker elements may not be copied correctly

...additionally, we now expose the transform as a function.