change equations scientific/pulse train for vectors

In case of a vector for ``var`` in the class PulseTrainScientific, (e.g. when using plot_pattern with a PulseTrain stimulus), a dimension error shows up. The ellipsis avoid the assumption over the number of dimensions of ``var``.