glsl: Use foreach_list_typed when possible.