Fixed handling swap in vmgen
Added logical set operations to TSet
Merge pull request #1306 from flyx/devel

Fixed handling swap in vmgen