"get_val": additional condition for array type in validation of arguments
"get_val": added some jsdoc info
"get_val": added jsdoc for exceptions