Fix types in API documents