use emplace_back and dump the initializer list

fixes #417