Forcing it to look up classes and methods instead of caching them stopped the crashes in the GC. Will investigate more later.