Ensure handlers return arrays. Closes troopjs/troopjs-core#98