Various improvements to BoundedList. Also corrected some signed/unsigned warnings.