Don't construct query selectors referring to .class:nth-of-type

Fixes #87