ECSignature: avoid multiple push/unshift operations