Some bugs of 'checktype' fixed, but I don't like something yet.
One bug with 'checktype' fixed yet.