Man who allegedly set partner alight in court