fix boolean deserializer to work with boolean or string values