Robust Over-the-Air Computation with Type-Based Multiple Access