Add generics and methods for set operations on neuronlists

Implements #161 and related methods.