Kompile - improving casting and removing failing tests.