Was using GpencilModifierType in type definition, but rest of usage was using values from GpencilModifierTypeType.