Merge pull request #3227 from marchaefner/fixClassCompilation

Fix scope of external constructor reference / Refactor `Closure`
Avoid unnecessary wrapping for some bound functions