add missing const qualifiers to MemoryDataLayer ExactNum* functions