Fixes invalid bind of this in closures, improved wrong parameter pass detection