Tested and fixed a couple of bug reports.

cpp-netlib #362 and cpp-netlib #364.