Changed createObjVec to also accept an std::vector

This should have been done here and merged into the sage branch. My bad.