RUBY-30513 dereference the symbol pointer before checking equals/hashcode