Refactoring of CallStack.java

(1) Created new function CallStack#checkDataType(VarEntry,DataType)
(2) Implemented some tests(CallStackTest.java)