fun <P : Any> Iterable<ContractState>.sumObligationsOrZero(issuanceDef: Issued<Terms<P>>): Amount<Issued<Terms<P>>>
Sums the obligation states in the list, returning zero of the given product if there are none.