Do not hoist the class name binding when hoisting variables

Fixes #987