Fix case where quadindex length is 1
Add a test with a quadindex equal to 1
Merge pull request #505 from geoadmin/gal_quad_len

Fix case where quadindex is equal to 1