add __toString method to Package class

- frees us from having to type check throughout the core where a Package object or pkgHandle could be passed