Add $is_complete() scripting function.

Works currently only for renaming scripts (similar to $matchedtracks). PICARD-514