Teach MapReduce.hs about BRACKET and make generated code more efficient