Improvements to the dead code lint

This module is still currently one I'd like to leave as a private implementation detail as part of libcore, was there a reason for exporting these variants?

I do feel bad for duplicating the parsing between std/core!