Finish updating array expressions on new type system and math code