Add reserve* functions to Vec and VecMap
Updated the doc examples with an explicit type annotation so they actually work
Fixed the capacity assertion for reserve & reserve_exact doc examples
Added capacity() to VecMap and changed tests accordingly