Add template specialisation for g-code flavour settings
Add template specialisation for g-code flavour settings

This parses the flavour string and returns the correct enum.

Contributes to issue CURA-4410.

Ultimaker/CuraEngine,Ultimaker/CuraEngine