cpp: test: Use correct visitor for variantpixelbuffer death test
cpp: Update NDEBUG conditionals to quell unused variable warning
Merge pull request #1388 from rleigh-dundee/cpp-testcond

C++: Update NDEBUG usage in death tests