BROKEN: As verts are created, store them in a hash table. Each time a new vert is requested check if a similar instance has already been created and using that if possible.
Fixed previously mentioned bug that prevented models from being drawn correctly.
When copying the "packets" structure from the BMD to the BModel during initialization, we were continuing to reference the BMD's packet instead of our own BModel's packet. Thus the number of indices in that packet was never being set, and the garbage value would cause an index buffer overflow.

Signed-off-by: lesterwm <element3260@gmail.com>
Fix bug preventing redundant vertices from being indexed instead of copied. Turns out we were attempting to hash an iterator of an Index object, not the Index object itself. Since the hash function takes a void* it didn't do any type checking. Need to be careful when auto and STL iterators.

Signed-off-by: lesterwm <element3260@gmail.com>
Merge branch 'indexedverts'
Fixed merge conflicts from last merge.

Signed-off-by: lesterwm <element3260@gmail.com>