2.4.x bugfix

Hi,

This pull request fixes three minor bugs, GEOS-6109, GEOS-6110, GEOS-6114, which we reported. They looked like bugs to us anyway, and this is how we fixed them. I hope you find the patches useful.

Kind Regards,
Lazar Bodor