Add a BindMap argument to flattenExpr.