Change implementation of IsValueType()

Change-Id: Idcda439c120ce08ba3d70c0b46d7cf3b052029e5