Implemented a few primitive ops

I have a few undefined functions that I just can't get right. Something about
Set's not having the instances I expected of them.