Only validate struct types. Fixes #1