Add getType and getAllOfType to ComponentOwner

Signed-off-by: Jack Huey kitskub@gmail.com