compiler.extract_closed
This PR fixes the `compiler.extract_closed` option after migrating it to Lean (and adds a test so it would be caught in the future).