Force the value of 'vm' key to be an array when only one vm.

Fixes #2