get-g-flags-definition should call to register-flags-type, not register-enum-type...