Finished TypedId code generation.
Change every native calls (beside allocators) to return double pointer
Change allocators to return double pointers.