BUGFIX: avoid counting sigops twice (once for legacy and once for p2sh)