Shadow default toString in valueOf reflection tests
Don't assume that a null expected value means 'raise an INDEX_SIZE_ERROR' for enumerated attributes.