Implement factory arg type validation.