d3dxof: Allow templates to be defined anywhere in objects file.