Conformal automorphisms of algebraic surfaces and algebraic curves in complex projective space