Check type equality in assert equals

Small bug in that type aliases don't get validated in reflect.DeepEquals and may therefore pass an Equals assertion.