fixed MidiIn open_port for integers; fixed replacing callbacks in MidiIn