Fix handling of boolean attribute-values

When a boolean false is passed to an attribute, then the value is
converted into an empty list. But the expected behaviour is that
["FALSE"] is generated.