Add special support for trampoline loops

This function is vital to implementing the choice operator <|> in: http://library.elm-lang.org/catalog/timthelion-elm-continuation-parser/0.2/