Use GeanyFiletypeGroupID enum in a few places

Also move the `group_menus` global variable to the top of the file
with the other globals.