fix bug in JSON properties

bug would lead to undesired unique_index constraints on JSON properties