cpp: test: Only test multi_array assertions for release builds

Strict bounds checks are only compiled in when NDEBUG is not
defined.
Merge pull request #1373 from rleigh-dundee/cpp-test-release

cpp: test: Only test multi_array assertions for release builds