Add forloop's "first" and "last" attributes