Support getPackage on given object