Fix operation::operands()

I messed up a template paramater, which ended up making it impossible
to substitute any sub-class of node in here.