Fixes regression bug in JTS.to() and JTS.from() methods