Fix compilation error on DMD2.066

Added toHash function to fix this compilation error on DMD 2.066-beta (with unittest enabled).
```
Error: AA key type Value should have 'size_t toHash() const nothrow @safe' if opEquals defined
```