Fix vlan type handling for sub interfaces and vlan-tag-rewrite operation