fix some cases where js optimizer emits ['num', -string-]
canonicalize some outliner generated nodes