Created new types.hpp and moved some types in there.