Fix api AddKnownTypes calls