Memoize primary key type. Test to ensure a string primary key is handled properly