More test coverage. This identfied a value leak, which makes a test fail. I should fix that.
Fixed there property value leaking. And added more test coverage. I only need to cover array, mixed and class instance casting now.