Just keep asking, "Am I under arrest?" followed by, "Then am I free to go?" Repeat as often as necessary. Unless you are actually suspected of having committed a crime, you will walk away eventually. I speak from experience. By the way, there's no need to be nasty about it. Just ask these questions over and over again in a nice way.
Bruce