Fixed NPE in Method.equals(). Also changed Constructor.equals() and
Field.equals() to not use toString() for the comparsion. (#485)