fixed duplicated types, and unexpected "boolean" definition in generated client units for cross-platforms