Fix for grailsApplication dependancy injection being serialized even when marked as transient.