Add reference counting to ProdSpace.