[BUGFIX] Fix type check in advanced query search

TCA fields with type "check" and items are handled as
binary fields which is wrong. Fields are used e.g. for the
field "hidden" of pages to improve the output.

Therefore the check needs to be extended if there are at least
2 items in the item configuration.

Resolves: #51982
Releases: master, 6.2
Change-Id: I4a0cc31790e4f12527655b6abfa5cd1eda6dd9c7
Reviewed-on: http://review.typo3.org/34412
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>