Turn the helper propertiesOf into an intrinsic.

This required to loosen a little bit the guarantees about the
ordering of the properties. But given how little specified this
is for the for-in loop itself anyway, it should not affect any
real code.