added code to check and fix uniqueness in GAUL layers