CLN/TST: #6175, specializing assert_ (WIP)

Helping with the specialization request. Work-in-progress. Updated tests pass locally.