Fix border-radius animation artifacts

Improved `animateView` to handle animating between layers with different border-radius values by flattening source elements to square during snapshot capture, then restoring the real radius values so only the group's animated border-radius creates smooth corner transitions.