Fixed stream->calculateAccess and stream->exportArray