This implements a similar optimization as WebKit's, see the bug comment.
This should be specially useful for sites with lots of custom
properties.
This is a high-confidence win on this speedometer subtest:
- 1.9x faster in style updates.
- 4.2x faster in layout object destruction (we no longer free the huge custom properties map).
- Also speeds up paint and layout a bit, probably from less memory churn.