* generic.ncl: new func string2logical

Signed-off-by: Yakkala Yagnesh Raghava <hi@yagnesh.org>
* generic.ncl: set_res_value_keep, dynamically convert type of a numstring.

Signed-off-by: Yakkala Yagnesh Raghava <hi@yagnesh.org>
* generic.ncl: clean print_res_att fucntion

Signed-off-by: Yakkala Yagnesh Raghava <hi@yagnesh.org>