Merge listeners with the same type and name, fixes #19.

This allows you to easily define multiple view items that share a callback.