Added Type Rule

I added a type rule which can test a value against primitives and objects. Since the v2 Validation is not only about validating post values, I think it can be included.