fixed ref_spec.rb

the last change didn't take into account that we introduced a new reference type "partial"
Gerry, this is really the key chunk of code that has changed.

It solves even more problems than those mentioned so far in the docs.  One of the most notable is references in *structure cards, which the current system completely overlooks.

In fact, I might try to add a spec for *structure rules.