Fixed bug in template replacement, added test. Multiple statements in a single Content element are
now evaluated correctly.