Switch to using ContravariantLifetime in JSRef<'a, T>.

This fixes #2333.