[ENSCORESW-2541]. Handle the problem with threaded perls when using the PERL_NO_GET_CONTEXT macro. Also, cast to the expected type when fetching the tree.
[ENSCORESW-2541]. Handle the problem with threaded perls when using the PERL_NO_GET_CONTEXT macro.
Also, cast to the expected type when fetching the tree.

Ensembl/ensembl-xs,Ensembl/ensembl-xs,Ensembl/ensembl-xs,Ensembl/ensembl-xs,Ensembl/ensembl-xs