fixed ref_spec.rb

the last change didn't take into account that we introduced a new reference type "partial"
fwiw, making this work in batches is currently the only thing I'm aware of that we need to get done before we merge this.  (though it would be good to get the tests passing; I'm going to work on that separately, since they're broken everywhere)