[new AA] mark toHash as public

New AA uses templates instead of TypeInfo to computing hashes. Thus we need a public `BigInt.toHash`.