Added TypeExtensions class.
Added test project.