Is there any difference between accessing scaling, position and anchor points via someLayer.transform.* instead of going directly to someLayer.* ?
I had some weird case here where accessing even someLayer.transform.scale would crash AE with an error about it trying to allocate several megabytes of memory, where just doing someLayer.scale would work just fine.
I was doing this in an expression on a layer's .position