Implementation of GLib.EqualFunc to use with e.g. HashMap
a symbol
whether the given instances represent the same symbol