collections: Correct with_capacity_and_hasher

The arguments were accidentally swapped in the wrong order.

Closes #12743