Fixes issue #9.
Now considers enclosing fg as context for resolving feature reference in
error propagation.