Divide check-ref targets into check-ref-cpu and check-ref-gpu

This allows us to run the CPU and GPU tests individually
Update snapshots to also build/test on OSX