Support for tuple type validators

This patch adds support for tuple type validation, in the same style as the list validation.