Follow up fixes for eblob datasort.

* Fixed problems found by [clang static analyzer](http://clang-analyzer.llvm.org/)
* Fixed problems found by [address sanitizer](http://clang.llvm.org/docs/AddressSanitizer.html)
* Fixed problems found by this weekend's testing.
* Reduced memory consumption for hash by 10% on x86_64