functionGemmaScalar function
Jinja renders a bare {{ value }} through Python's str(), so booleans
capitalise, null becomes None, and floats follow Python's notation.
Implementation
String functionGemmaScalar(dynamic value) {
if (value is bool) return value ? 'True' : 'False';
if (value is double) return functionGemmaDouble(value);
if (value == null) return 'None';
return '$value';
}