Added support for more vertex formats and changed the way 16 vs 32 indexes are detected to a more reliable method