Make IntPtr and WordPtr as instance of Data.Data typeclass, fix #13115

Authored by sighingnow on Sep 13 2017, 7:26 AM.