resolves #217 don't compact nested documents