loci: fix bug in new wire type parsers

Reviewer: @rlane

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.