ir: Add bool cast build function
semantic: Use buildCastToBool
semantic: Make it possible to get size from StorageType
rt: Make string be immutable