Clean up modules/term.c

1. Remove redundant code:
   Get rid of PicoC return statements
   that are not required.

2. Fix a few type issues.

3. Move common defines to the top of
   the file. These defines can be used
   by all Alcor languages.
   This avoids duplication of code.