Added debug tests for indexing, pop_back and both forms of erase.  Added an improved error message for erasing a single element with end().