Use yesno filter with lists and binaries

This comes by default with Python as empty lists evaluate to false. It's
explicitly implemented as a term_to_bool function in filters.