simplify creg's BasicType::Serialize() a lot