Use pragma once instead of define hack (thanks Natalia)
Pass by reference to avoid pointless copies (thanks Natalia)

- Though note that picojson does at least one copy itself