Debugging APIs progress

This pull request bundles a few commits that improve situation when it comes to debugging API structures extracted by incremental compiler.

See particular commits for details.