Extended lval_err to take varargs to improve error messages.
Added lval_type_name.
Added CHECK_ARITY and CHECK_TYPE to provide better information.