Add Query::hasField()

This method makes it much easier to see if a query contains a given
column name, which is useful in pagination.
Add some todo's so I don't forget.