[#18] Get package dict on after_delete to check type

No need for #615 in core then