Bugfixes, serial communication reliability improved

Fixed some bugs around, and apparently fixed the serial port timeout on
Orbital Matrix plugin: COM port would stop responding randomly, after a
while (still needs further investigation)

Added "loop mode" into the stub frontend, to "flood" the communication
port and test how much stable the communication is.