fixed lambda capture bug; added pointer test to parallel_transform