Finished the implementation of tag support (issue #394)

Removed commented and duplicated code from ModelObjectsWidget.