Fixed not closing struct. Fixed arrays. Type by default.