Fix most slicing tests on Windows

Casting to share_ptr<Base> to avoid the conversion to
vector<shared_ptr<Base>> that VS likes so well.