Make named structs work as described on the tin.