Fix Map/Set insertion segfault