Added method to mongodb trait for expanding refs