@comlys That C-var solves the foreground DOF issue where the foreground would be sharp and the have proper depth further away from camera with a very pronounced edge.
However I am still getting some very strange halo, or border area, around animate object where it is sharp. This was something that was rendering fine in 5.4. Been trying different things but nothing seems to work.