minor bug fixes; inverted belongsToTransitive to containsTransitive to simplify queries