table/definition: rewrite match/2 and match!/2 to work at runtime