Include index as the last parameter

This is just so I can handle cave borders in cave-automata-2d the same as I was before - if it doesn't fit with what you want from the module then no obligation to merge, I can always keep a fork :) Thanks again!