Check all internal citations; do not include citations that don't match one

Instead, log a warning.

Includes massive PEP8 of the internal citations layer tests.