improving cjs detection, including export instance detection

this PR adds a new test to check if the exported object is an instance without members but with a prototype chain, it also improve the keys detection.