Use the same approach to match error quark functions with error enums, as the one that is already used for filling out enum error domain.
Fixes issue #31 and #191.