[C++] Flyweight tests & fixes