Fix potential bug in handling metadata.

In a OFPIT_WRITE_METADATA the value would be reset, as pointed
by Jean Tourrilhes.
This commit fix this behavior and also add tunnel metadata information
to the packet parsing.