I ran into a very unusual case_clause match failure.
createPattern(PatternId, Analyzer, PatternDesc) when is_list(PatternDesc) -> F = fun() ->