Bug fixing for TOZ Grader

TOZ grader always give 1 points before. Fixed.

Still need a script to fix existing gradings.
OK. will change this. I didn't noticed.

Another cause is that the unique_attempts function is broken, it always returns 0.