Automatically add _num_varname variables to the namespace, containing
the length of updated values (e.g. _num_spikes for _spikes).