Fix handling of defaults when parsing the payment message.

Bitpay is leaving out the payment details version which was handled incorrectly. Adds a testcase for the defaults.