Add genericised forEach and indexer for FormController

With some JSDoc for good measure