Add limited tuple inSet support

This is a partial fix for #517