partial support for LetRec in flattener