types: Move stuff for global types into src/base/types.hh