[refactor] add inner-malloc to layouts

Layout are a bit more complex as they contain extra arrays at the end
of the struct, so new macros are required.
5 jobs for better-inner-malloc in 28 minutes and 38 seconds