ArrayEntryStore: Fix code example typo; create ValueStore base class.
uploadFile no longer closes the input stream automatically.

Automatically closing the stream made for shorter, safer code in the
common case.  But in the long run, I think it's better to have whoever
opened the stream be responsible for closing it.