Add capacity-related functions for VecMap

Part of #18424

Adds functions `reserve(uint)`, `reserve_exact(uint)`,  and `capacity()` to VecMap, as per the collections reform.

(Separation of PRs from #19516)