Added Optimise() to dedupe index and vertex buffers

Fixes #23