array.tomultimap
fix to softmax when there aren't any values.
Merge pull request #335 from dlwh/master

softmax fix.