Typo.
Improve hooks called when saving an object.
Remove empty values in returned JSON only in root dictionary and in errors.