Coerce args to tuple if necessary.

Added unittest as well.