Add util method to check for mixed dim
Add is2D util method
Improve ST_Translate + unit tests

This should fix the issue described in #284. The behavior implemented is
consistent with PostGIS.
Add Javadoc
Exit loop as early as possible
Pass Coordinate array rather than Geometry
Add missing license header [ci skip]
Add CoordinateSequenceDimensionFilter
Solve same problem using filter
Remove util methods no longer used
Merge pull request #370 from agouge/284

This should fix the issue described in #284. The behavior implemented is
consistent with PostGIS.

```mysql
ST_Translate(NULL, 1, 2), 
-- Answer: NULL
ST_Translate(NULL, 1, 2, 3);
-- Answer: NULL
ST_Translate('LINESTRING(0 0, 1 0)', 1, 2), 
-- Answer: LINESTRING(1 2, 2 2)
ST_Translate('LINESTRING(0 0, 1 0)', 1, 2, 3), 
-- Answer: LINESTRING(1 2, 2 2)
ST_Translate('LINESTRING(0 0 0, 1 0 0)', 1, 2), 
-- Answer: LINESTRING(1 2 0, 2 2 0)
ST_Translate('LINESTRING(0 0 0, 1 0 0)', 1, 2, 3);
-- Answer: LINESTRING(1 2 3, 2 2 3)
ST_Translate('LINESTRING(0 0, 1 0 0)', 1, 2);
-- ERROR: Cannot translate geometries of mixed dimension
ST_Translate('LINESTRING(0 0, 1 0 0)', 1, 2, 3);
-- ERROR: Cannot translate geometries of mixed dimension
```