support for auto setting the Preferred Email and Preferred Phone if only one email and phone are specified.
change deletes to not use dml in a loop
test support for auto setting the Preferred Email and Preferred Phone if only one email and phone are specified.