fixed -Wshadow warnings, added rvec test