Native objects were left allocated with no references by the finalise routine.

This way we make sure they're deleted on JS garbage collection.
When using script_control_cpp = yes.

Thread with the issue: https://github.com/funkaster/cxx-generator/pull/31#issuecomment-14772390