Fixes and tests picklable issue with JSONable.