Make sure elements inherit ae:literalize and xml:space from ancestors, closes #1292 again