Added TContainer::validate() method.