Check if rval function arguments are valid + unit test
Merge pull request #569 from basvandervlies/rval_function_wrong_input_type

Check if rval function arguments are valid + unit test