diagram: using implmenets rather than extends on extentions of classes that are not subclasses to Object

Signed-off-by: Mattias Andrée <maandree@operamail.com>