PPX rewriter for pattern matching on flat options
