Added extra arguments support to 'checktype'.
Bugs fixed.