A functional equation which characterizes polynomial operators with applications to uniqueness