Move isAncestorPackageOf docs to definition
Simplify isAncestorPackageOf implementations
Trivial whitespace fix
Move package resolution to semantic phase