Modifications to Fix Coverity errors
  -- Mostly little memory use on error type problmes.
     The kind of thing that makes a mess of a debug statement.
  -- Additional fixes to get rid of type-warnings.