indexbuffer: do not copy input data if it is already in a suitable typed array.
vertexbuffer, indexbuffer: do not specify PREERVE_CREATION_DATA flag for debug builds as long as the build system does not support removing this from releases.