Verify Type in CheckContent

In .gitignore I added one line. I have no idea why the diff went crazy.

    *.userprefs

Changing the counter to uint matches the changes in the java project where they switched to long, but since we have uint we can use it.

Most important is the change of CheckContent, before the type variable was not verified(the input was compared to itself).