fixes #314
variadic emplace fixes #305
less mem allocations, when saves with memory file. fixes #311
merged master
Merge pull request #317 from nem0/fixes

Fixes