[7129] Changed uint64 results to const uint64& on some methods.