Update format test
Add static_asserts to template funcs in expr.h & replace.h