equals of OutputItem checked for wrong class