Rule 'block-scoped-var': correct scope for functions, arguments (fixes #832)