Fix stat_wrapper for use with sequel_store (memory_store still broken)