Fix: return correct layer size.
Fix: return correct layer size.

The accumulated size includes the json string (because that size is needed to
properly finish the SAH1 sum) but was not substracted when returned.

noteed/rescoyl