Use structure_equal_to and structure_hash, closes #31