Rework tuple handler for Sanitizer class

Enables three-part tuples for specifying an additional key.
Rename passed variables in Sanitizer

Uses "mode" for the existing "value" passes, since these will now be
accompanied by an additional passed variable.