Implement BIP62 rules 2, 3 and 4