fixed bug in cyclic reference barrier when same class type is used twice
with different field names. added test cases