make Object.freeze work with functions, arrays, regexp
setInstanceIdValue, called by defineOwnProperty, called by freeze, was not
handing all id-identifiable properties, and so when freeze tried to freeze them
all, setInstanceIdValue was deferring onto
IdScriptableObject.setInstanceIdValue, which just throws an
IllegalStateException.
I made setInstanceIdValue always handle all the ids that getInstanceIdValue
does.
git-svn-id: svn://10.0.0.236/trunk@259287 18797224-902f-48f8-a5cc-f745e15eee43