Support for IO modes in MjAPI