correct creation/deletion objects in TypedPool
upcast check added in meta
first compilable code for NPAPI scripting
various NPAPI fixes