Ensure check methods can't modify tokens array

Duplicate tokens if being called from a check method.
Merge pull request #296 from rodjek/safe_tokens_in_check

Ensure check methods can't modify tokens array