Activate clicked object if group selection is cleared

If group selection is cleared and pointer clicked other object 
=> activate this object.

Second commit:
Only setActiveObject if target !== activeGroup.

See issue #506