fix arrays reading in C, add type Real for double or float