Improve dump() for objects and Serial.on('data') (part of #397)