fix compatible-closure to deal properly with language extension

Thanks to David Van Horn for spotting the problem and providing
a nice simple test case

Please include in 6.1