added function EntityFieldInfoInterface::setRules
added function TypeInterface::validate