Coverity fixes (and other clean-ups) for BUFR.