implicit vars are scoped correctly

closes #2