Updated old code to use compile-time polynomial size detection. Fixed template deductiojn bug in evaluate_rational. Updated lanczos generation to match.