Fixes #2758 - Set key_type when importing parameter defaults

Previously, when importing a class that had a default parameter previously overridden, the types could be different, which caused the error "Validation failed: Default value is invalid" when you try to perform an import.