Toyota will resume production in Japan Wednesday after system malfunction