Fixed VarDec to check on id, type, and value