When adding to MList or MDict, use ids when given an object