array.tomultimap
fix to softmax when there aren't any values.