MOD: add retry_sub_codes config
Fix serialization of boolean type