Fix spawn ICE on invalid argument.
Add test for bad spawn argument.
Merge pull request #1124 from EXetoC/spawn-arg-check

Spawn argument checking.