Avoid array clone operation on PacketType.valueOf call