Explained type confusion more thoroughly.
Added missing line counts in mitigations section.