extended MOAIIndexBuffer to support 16-bit as well as 32-bit indices