Correctly process external closures (fixes #13)