Fix BIP 21 and BIP 72 ambiguities & mistakes

As mentioned in the [bitcoin-development mailing list](http://sourceforge.net/p/bitcoin/mailman/message/32070951/), I have discovered some ambiguities and mistakes while writing my own bip-21 parser. This pull request fixes the various issues.