OS: Ubuntu 12.04
As found by Wciow in the IRC earlier, getUnitsForFaction(int index, string command, int field) isn't treating the field (an integer where 0 = land and 1 = air) as optional (or at least it's not when a command has been entered). This also means there's no way to get all the units in the faction (besides two function calls), as you have to specify a field.