Populate the data-stream history before attempting to iterate over it.
Datastream versions parent was set to the latest version of the datastream rather than the object it belongs to, this cause problems with calling parent functions such as getDatastreamContent() which were expecting the parent member to be an object.
Merge pull request #65 from nigelgbanks/1.x-use-datstream-in-foreach-loop

Allow's users to use a datastream in a foreach loop without first calling count, etc.