allow extra info in js optimizer, and send relocate pass info that way
fix detection of whether we know which are the generated functions in js optimizer