replaced most Type(x) === 'object' with === OBJECT (with constants) and so on.