Custom template fixes: add __form variable and exclude "template" option from group attrs