Rename error.cpp to type.cpp