Add templated helper functions to ComponentType and add tests for the
ComponentType class
Update README