Use tred to remove unneeded edges from the inheritance graph. Fixes #20