Grid properties: get rid of the dimension string for integer properties

this uses a small amount of template magic, to automatically change
the API of the GridProperty class depending on wheter it is
instantiated for double or for int.

Note: This feature may not be worth the additional complexity, so I'm not offended in any way if you just close the PR without merging...