Merge pull request #11 from ichizok/fix-type.root

Fix type.root and type.repository()