Fixed an issue with allowing duplicated keys for serial port input (for example baud_rate=1,baud_rate=2). Such cases will now result in an error.