Added the validate_models() method to the structural API.
This is used to check that the models are 100% consistent.
Authored by: bugman 2011-11-23
Parent: [r15009]
Child: [r15011]