[bugfix] Make 'contains' method for subentities actually work

Said 'contains' method _always_ returned true.  I appears that I am the
first one to actually use the method.