Add ref counting of mapper for default container constructor.