resty.core.var: reject bad variable name types.