validate_regmedint function

Validate soundness of a regmedint object.