Expanded reference resolver to include method arguments or similarly decared things.