Add getType and getAllOfType to ComponentOwner

SpoutAPI: https://github.com/SpoutDev/SpoutAPI/pull/552
Vanilla:

Signed-off-by: Jack Huey kitskub@gmail.com