Modify the graticule layer to store settings in a custom object instead ...

...of layerinfo (#4913)