Enhanced type checking for restify.model