Fixes #1

Took me a while to learn enough C++ to address this, and it is possibly unidiomatic how I did so but I thought I'd go ahead and send these upstream in case you were interested.

RE: https://github.com/krant/eqml/issues/1