Write a Python function `sum_of_xor_pairs(numbers: List[int]) -> int` that calculates the sum of the XOR of all unique pairs of numbers in the given list. A pair `(a, b)` is considered unique if `a` and `b` are at different indices in the list.
#### Example Usage
```python [main.nopy]
sum_of_xor_pairs([5, 9, 7, 6])
# Output: 47
sum_of_xor_pairs([7, 3, 5])
# Output: 12
sum_of_xor_pairs([7, 3])
# Output: 4
```
#### Constraints
- The input list will contain at least two integers.
- The integers in the list will be non-negative.