fix export default class declaration
Fix repl options menu

Fixes #1334
Block binding: Handle nested scopes better

Issue #1358
Block bindings: Fix issue with sibling scopes

This uses the free variable checker to see if there is a free
variable with the same name in the current variable scope.

Fixes #1358