d3dxof: Avoid using strlen for specifying templates or objects size.