add support for derefencing a symfony template reference