Influence of external 3D magnetic fields on helical equilibrium and plasma flow in RFX-mod