Finished Var Assigment

Added casting and var assigment, all functionals stuff is still not
implemented.
Implemented Write and WriteLn.
Fixed a bug with Literal SemanticRecs that were not using Type enum