ECSignature: fixes for canonical signatures