Use layer as feature iterator

There's no room for bugs in "for feature in layer:" and users should use this iterator whenever they can.