When copy-constructing a HashMap, HashSet or List, reserve initial capacity according to the size of the object being copied.
Fixed WeakPtr's operator < using wrong type argument.