swr: use assert in swri_sum2 to check that only supported formats are used.