Use reference counting for tables as well