The links array is now a hash keyed on the ref (self, connect, etc).