The hash method of AST is updated. It returns correct a hash value.