Fix caching of ROW type