fix `expand` on a `module` containing lifts from expression

Another attempt at the bug that b95baa1d25 was intended to fix.