erasePath fixes, and requal function
Use JSON stringification to distinguish between numbers and strings in pattern literals