BUG: logsumexp() does not support masked arrays

Simply use `asanyarray` instead of `asarray`. I guess that many other functions should be fixed the same way.

Fixes gh-3034