Change hash method so that it doesn't unnecessarily create an array during hash computation
Simplify logic in Dynamoid::Document's equality check
DRY up document tests