Improvements suggested by @metadave
- Return riak_error for all calls
- Improve the testing comments
- Add riak_array_sort()