Make PriorityMux stack safe (#2854)
It used to be implemented with recursion, now it's implemented with a stack safe reverse and foldLeft. Also there were no tests for PriorityMux so I added one which helps prove the change is functionally correct.
parent
e45be10a