I found a couple of cars at work with very hard tree sap just like the pictures you've showed. I was able to remove it with a method using solvents. I will post it tomorrow because it requires a bit of typing.
I have not tried using WD-40, but I do know using IPA straight will work. Becareful...