CopyAgent: Fix all xlint errors mentioned in the Travis CI fail log