app: some serious cleanup in gimpaction-history.c, still a lot to do