loci: fix bug in new wire type parsers

Using the unified class's discriminator was incorrect because the discriminator
can change offset and length between OpenFlow versions.

Also added tests that would have caught this bug.
Merge into master from pull request #223:
loci: fix bug in new wire type parsers (https://github.com/floodlight/loxigen/pull/223)