remove uses of org.hibernate.mapping.PrimitiveArray
fix failing tests