wrap_c: major refactoring; support fixed-size arrays in structs