Fix a memory leak and simplify the code

In MidiIn.getMessage(), message_vector was allocated using new,
but never deleted.

The code was simplified by using stack instead of heap allocation
where possible, and by using the new STL container coercion
feature introduced in Cython 0.17.