Add getType and getAllOfType to ComponentOwner

Spout:https://github.com/SpoutDev/Spout/pull/2198
Vanilla: https://github.com/Vanilla/Vanilla/pull/611

Signed-off-by: Jack Huey kitskub@gmail.com