fix OR operator and NOT operator

Hi, when I create a Document with a field of OR(basestring, int) and set it to some str or unicode, the document just does not validate, I think it's a bug.