Add special tag to automatically validate struct fields

Fixes #3.
Fixes #4.