Fix ArrayStoreException in ForkedGrailsProcess