Fixed how variable values are looked up to deal with the
pathalogical case when you include a resource file with a
variable that has the same name as a local variable.

Pretty much got resolving Variable references to the definition working,
but for some reason the code isn't executing. Too tired to figure it out
tonight.