* generic.ncl: new function set_res_value_keep similar to
  get_res_value_keep.
  print_res_att new function to print var attributes

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