Fixed incorrect use of SciDB C API that was causing errors when used with SciDB in DEBUG mode