Added proper parameter type checking for methods.
Fixed up the typing system a bit - made it more coherent.
CLOSED - task 13: Std-Lib Count Function Not Working 
http://github.com/Hexcore/HxCAS/issues/issue/13