Fixed scope check bug.
Added line numbers to error messages. Added more scope checking. Fixed parameter list construction bug.
Changed to integer ast type. Added more scope and binding checking.