What are requirements for serializable here? The `getAllConfigBag` also includes inherited config (which makes sense), but means the entity could potentially pull things in like an `EntityFactory` etc that are not serializable.

I can live with this, so happy to defer any work here - would be nice if user gets a meaningful warning though.