fix marshaling of bool flags