Loading GPv2 files was crashing after modifiers were removed in #125102. The modifier type info structs were still used for some internal purposes (`struct_name`, `free_data`, `foreach_ID_link`), but the info was not registered any more. Since we only need a small portion of the typeinfo and because GPv2 modifiers will never change, using simple functions with switch statements makes more sense here than bringing back fully fledged typeinfo struct registration. Pull Request: https://projects.blender.org/blender/blender/pulls/125663