Added support for code nested in lists in support of Mesh sections (refs #4343)