Added functionality for retrieving all classes in a package that extend or implement a given type.