Fix refresh logic in MethodScoreCache
More spec work on expressions
Add Spec tests for type cast expressions