add support for Foundation types in searching blocks