improve GQuark handling and GError creation.