Fix bugs, handle new instruction

Add select handling
Add helper method for adding Value to a set
Fix bug where a value was used after being destroyed