AI-581 - 1) added reference type support 2) self-cast for FieldValue during boolean operations 3) bugfixes
Merge remote-tracking branch 'origin/version4' into version4