ir: Add buildStruct utility function.

This one does not insert, and takes a list of members.
semantic: Add stub layout struct generators.