Refactor #4564: Make auto-binding support constructor with parameters