fix comparison involving dynamic.Dynamic types.

This code now works as expected:
var x = new Dynamic()
x.y = 1
print(x.y > 0)
Merge branch 'fixDynamicComparison'