Fix or selectively silence warnings in src/components.

r? @pcwalton, especially the `ContravariantLifetime` change I’m not sure of.