packet: fix PathAttributeAggregator

PathAttributeAggregator can handle both two-bytes and four-bytes AS
number. So its serializer needs to know which way should be used.

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