Add reference.reftype enforcing