fixed ref_spec.rb

the last change didn't take into account that we introduced a new reference type "partial"
I noticed that the code for this didn't make it to master. It's only in the "following" PR. I copied it to this PR and added a comment about the reference types at the place where we set the reference type.