handle boolean values correctly

my usecase was in the elasticsearch output, embedded => true