Removed `createComponentWithGetComponent` and `createComponentFromFactory` functions; brought their contents into `createComponent`.
Added error should a component type be invalid.
Merge branch 'master' into feature/#212