fixed typo in error message
FIX for #24. Avoid usage for setArrayValues and call faster setArrayRegion instead.