And expand some type hints in the receipts storage module.
Applies the changes from #10665 to additional modules.