Partial fix for issue #6

Last checked belongs to the Path now, but deduplication doesn't work
currently, needs to be tested and fixed.
Tests: Check whether hash is idempotent
Fix hash computation

Wrong hashes were computed due to the missing casting to the correct
types. Fixed and now hashes are computed correctly.