Fixed a bug where closures declared in namespaces were mistakenly
compiled