Call GetComponent properly.

Now that we've switched to using dynamic_cast to check if a component
matches what we want, we can use subclasses properly.