add_file_datastream should check for a reflection. Fixes #594