Added simple type validators.
Merge remote-tracking branch 'origin/master'