Fixed a couple of bugs in pyNN.neuron backend and tests