Fixed possible crash when reading arrays from boost::variant