An active pattern combinator for list inputs

A few active pattern combinators useful when pattern matching on lists is necessary.