[ref_impl_eiffel] [1489] Refactor validation further and add phase 3 validation, which operates on the flattened archetype.

Revision: 1489
Author: thomas.beale
Log Message: