The molecular chemistry of Type Ibc supernovae, and diagnostic potential with the James Webb Space Telescope