public function addType($type, TypeHandler $typeHandler, $alias = null) {
		$this->typeManager->setTypeHandler($type, $typeHandler);
	
		if (!is_null($alias)) {
			if (is_array($alias)) {
				foreach ($alias as $al)
					$this->typeManager->addAlias($type, $al);
			}
			else
				$this->typeManager->addAlias($type, $alias);
		}
	}