Fixes for Array casting.