Add ability to verify container before compile.

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| Refs tickets  |
| License       | MIT
| Doc PR        | 

This will allow modules to modify the container without risk of a faulty module causing the container to fail and break the entire system by allowing validation of the container beforehand.