Fix Geometry in Firefox

Change `Enumeration` reference equality checks to perform a value comparison. Work around transferable object bug in Firefox:

https://bugzilla.mozilla.org/show_bug.cgi?id=841904

This fixes #1039.