fixed problems with array type. Typedef is working.