IO::FlatDatastore: reflowed open_impl() logic.
Replaced header guards with #pragma once.