Check for compatible schemas during set operations

Addresses #212.  Note that I'm only checking the length of the input schemas here.  A complete fix is blocked by #213.