only use exported declarations in psc-docs

Previously was using the full list of declarations for some things,
which meant that (for example) a module which contained some
non-exported type declarations could end up with a "Types" header but
nothing underneath it.