Fix freebase queries that check for the head of sequences of basic types