fix issue with setting ioOptimized value in 'toVirtualMachine'

ref #846