The last four do not have a dev/non-dev context, so they should be dispatched using dispatchScript and not dispatchCommandEvent at line 69 down there. Probably there should be two arrays.