[PATCH 12/13] Set a DeviceFormat instance's type attribute to the requested type.