Fix inverse of special distribution operators and add tests

16 jobs for special_distributions_backport in 14 minutes and 57 seconds (queued for 11 seconds)