Add support for validation of single primitives

closes #7