add index file for documentation
correct reference output for "hang" test

this test no longer hangs
aldor_gloop is not required for tst_dup
corrected reference output for bug818 and bug892
minor makefile cleanups

- check_PROGRAMS, CLEANFILES, and TESTS are common to all test-makefiles,
  so we put them into testprog.am
- Makefile does not directly depend on Makefile.am, but Makefile.in does
change C99 comment to C89 comment