Fix build warnings for shadow and default assignment operator

These were revealed by paraview dashboard