fix bool and enumeration translators