Make Package.isRoot work and add tests
Make Package.addSubPackage adjust subpkg.parent

Also add tests for this.
Set Package.parent through attachToParent only