fix signed / unsigned comparison warnings in tests
rename result -> scalar_result - to avoid R swig typemap 'result' name clash
rename result -> vector_result in VectorResult.h to avoid R swig typemap 'result' name
clash