Check parsing matches printing in test programs
Fix representation and parsing of polymorphic variants
Merge pull request #63 from lpw25/fix-poly

Fix representation and parsing of polymorphic variants