Fix issues with position lists and NEAR constraints.