Implement gjs_joystick_enumerate()

Do it slightly differently from how we had originally intended. This
requires adding an extra function too to free up the result value, so do
that.
Fix copy-paste error

It's a Joystick class, not a GObject class (or, well a GNoDbifyObject
class. No, I don't expect you to understand ;-)