fixed null pointer exception in mode selection (double click)
It was using getContainingCOmponentImpl but the mode was in the type.
Mode filter now filters mode specific elements. It before was comparing
a mode with a mode instance