bug fixed to functions match/2 and match/3. (cherry picked from commit 463df19c0b5be710d2200deed0db0821a915a2ce)
bug fixed to functions match/2 and match/3.
(cherry picked from commit 463df19c0b5be710d2200deed0db0821a915a2ce)

arcusfelis/wrangler,prowessproject/wrangler,andrzejsliwa/wrangler,bsmr-erlang/wrangler,tdb/wrangler,arcusfelis/wrangler