Negative index can be passed in a vector. Handle this more gracefully.
Changed an exception text when an enumeration has been modified during iteration so it is less confusing.
Moved texture metrics from BitmapData to texture so it handles both compressed and uncompressed textures.
    There might be some cases where a BitmapData is instantiated and not uploaded as a texture though (so we won't see the trace).