Some small improvements to BagImpl, plus the new Vector class.

Signed-off-by: Rick Taylor <rick@tropicalstormsoftware.com>