Found and fixed an error where Jinja functions in attributes threw a parsing error. Added test for this as well.