Ensure Stream objects have necessary attributes, fixes #170