Add Identity type errors and toString function