Cleanup some unitialized variable issues pointed out by Valgrind

These were found during valgrind analysis of the demo simulation file. Next test is running while interacting with an actual system.

Again the biggest issue is the memory leak when iterating over QSerialPortInfo::availablePorts() using Qt's foreach loop; should be fixed in 5.2.2/5.3.2.