Ios/fix aot class leak

Fixes klass instance leak while doing AOT on bigger codebase with lots generics + value types.
Fixes out of buffer space while encoding GOT entries.