Switched type.h to use lexids instead of strings