Enhanced type checking for restify.