type-check ExplicitSetSpec properly

@lileicc Tiny change ready for review.

Makes e.g. `query size({1, 2, 3})` work.