Fix equality checks between strings and numeric types