IsValidOp: throw proper error on nested shells (#608)

Thanks geomworx

git-svn-id: http://svn.osgeo.org/geos/trunk@3755 5242fede-7e19-0410-aef8-94bd7d2200fb