Ok. I fixed the issue. We should invoke constant folding after 'auto ref' resolving.