Make error paths reported for missing references consistent

Fixes #64
Merge pull request #65 from whitlockjc/fix_ref_error_paths

Make error paths reported for missing references consistent