fixed -Wshadow and other warnings, added rvec test