Reworked container validation, more tests.
Fix to prevent auto-instantiation of classes used as default values.