Tests that weak references are ignored when dominators are calculated and that weak references won't affect object's retained size.