Only get property type once in objectOf PropType validator.