Generalize template point

Some additional improvements to https://github.com/ufz/ogs/pull/215