split XType / XTypeVersion into separate *.scala files