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.

http://jira.codehaus.org/browse/GEOS-6109
http://jira.codehaus.org/browse/GEOS-6110
http://jira.codehaus.org/browse/GEOS-6114

Kind Regards,
Lazar Bodor