Fixes #1114, Adds upper and lower as filters for the template engine.