fix external bindings not being in scope in let bodies

The renamer was being run on let bindings without including the NamingEnv of the overall module context. Fixed and added a test case for this.