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