table: use 4byte AS as internal data structure

Always use 4byte for AS internally. Convert AS for 2byte AS peer when
necessary.

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