[PATCH] Use G_N_ELEMENTS() more