Invalidate shadow renderer when classList is mutated

Fixes #443