added behaviour for array accesses and ternary expressions in entity mapping