added GetVal(), GetPrimHashCd() and GetSecHashCd() to TCnCom for Snap.py support