Fixed some type errors (this diff should be good for brainstorming bugfinding tools)
Fixed some type errors (this diff should be good for brainstorming bugfinding tools)

asgerf/light-refactor.js,asgerf/light-refactor.js,asgerf/light-refactor.js