Check well formed

Validation utilities update: tools to help with well-formedness checks.