Ensure line numbers are properly preserved in EEx, closes #2485