Add extra arguments for tree items and current item to menu template context