toJSON digits parameterization. See danielkrizian/rChartsDygraphs#14

Adding ability for the user to pass `digits` parameter to toJSON

This should fix the issues with losing the decimal point precision, as documented here:
https://github.com/danielkrizian/rChartsDygraphs/issues/14#issuecomment-46632085