BUG: ma: ma.average didn't handle complex arrays correctly (issue gh-2684)