table: use Type assertions instead of switch

simpler

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
table: refactor handleMP()

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>