fix export default class declaration
Fix repl options menu

Fixes #1334
Block binding: Handle nested scopes better

Issue #1358