People here probably know that within a control statement you can for example use class="$FirstLast" to add class="first" to the first item and class="last" to the last.
This might be nitpicking but what if the first is also the last? Right now it adds class="first" but shouldn't it add class="first last" or better class="firstlast". In that way you have more control over your layout with css.
I could probably create a function for this, but I just wanted to ask the people here their opinion.