Support several axes in distributed reductions.