GEOWAVE-99.

All and some medium Coverity fixes.  See associated GITHUB issue for details.