minor fixes in resty.core.base.