Initial checkin, code moved from glib/genums.lisp