Bloom filtering: check for malformed Merkle trees. Resolves issue 593. Thanks to Pieter Wiulle.