Optimising First-Class Pattern Match Compilation