update to TransformPipes in Gremlin to meet new inteface typing requirement in Pipes. Also fixed a minor bug.