Unify typedef usage in array