Fixed bug when using F# fold with pattern matching.