fix ReferenceField validation for RandomPKDocument