Add Expression semantic and fix parse cast bug.

Expressions can now have a semantic analyse. First implemented in
CastExp to resolve the expression. Used in parseSliceExp to deduce the
slice type to int.