JsBackend: save local and literal functions 'local' status in AST

Reason: to distinguish local functions,
when cleaning up after inline.

Unreferenced local functions can be removed.
JsInline: identitySet helper function
JsInline: common reference utilities for cleaning up after inline
JsInline: remove unused local function instances
JsInline: remove unused function literals and local functions