Make Railo compatibility changes

Railo suffers from the same local-scope bug reported here:
https://bugbase.adobe.com/index.cfm?event=bug&id=3039242

It's considered a known difference with ACF and won't be changed:
https://issues.jboss.org/browse/RAILO-1443