HaskFlattener: support escapifying multi-leaf contexts