Fix typeOnly query option to definition queries

Closes #135