Make addComponent() also set the property.

This makes it a bit more useful than just being a proxy.
Fix failing tests.

A bunch of tests relied on old behavior, update those tests so they
continue to pass.