Purity in compactly generated derivators and t-structures with Grothendieck hearts