Replace Lamp Select by a more generic select op

Instead of having an operator to just select lamps, make it a generic one we can recycle.

Now when listing objects with empty material slots, clicking on the object's name will select it on the 3D view.