FlowLayout: Add get/set_snap_to_grid() and properties.

Also correct constness of several methods.

This is based on changes in this patch:
https://bugzilla.gnome.org/show_bug.cgi?id=725125#c7