Fixed errors in setSignatureType function.

Missing class reference in checkSignatureType.
Mismatch in parameter from function ($signatureType) and internal ($mode).