Add missing type hints to REST servlets.