create doclets for externals

Fixes a regression introduced by #537.
add tests for external tag
improve test coverage; remove unreachable code; other cleanup
bump revision
fix syntax for modules that export a single constructor (#655)