Implemented tee for parsers. Implementation is awful mess of casts due to Scala's broken pattern matching typechecking