Fixing recursive serialization of apps and extensions.