Fix saving styles in postgres where style definition includes %1 etc strings
Adding comments explaining code changes
Merge pull request #1615 from ccrook/PostgresSaveStyleFix

Fix #11329 Graduated renderer style not saved in postgres