This is an absurd situation, having a military minder that tells you what you can and can't say in a production. It is hard to avoid some kind of interference if you want to borrow military equipment though. There is always some standard that you want to uphold that is probably higher than what is allowed by the first amendment.
The solution is to not allow the military to lend any assistance to movie productions. Frankly, it's not their job anyways. This is the only way to avoid the kind of influence described in the article.