Simplified generated code when all children are text nodes. Fixes #6.