Added type registration and namespace management into items and kernel.