Construction and Authorites outlined in 1021 only apply to 1021. Is there a problem i 1021? Depends on what's already in "existing law or authorities relating to the detention of United States citizens, lawful resident aliens of the United States, or any other persons who are captured or arrested in the United States."
Other note: What happens to persons not "captured or arrested in the United States"?
So is there a problem in 1022? Depends on "determined" and "Authorization of Military force", I think.