Fixed bugs with ToVector and RegionGroup
Additional fixes to ToVector
Merge pull request #530 from lossyrob/fix/tovector

Fixed bugs with ToVector and RegionGroup