Added support for Variant on boolean type
Simplified deserializer code