Update `serialize` method to not inlcuded empty compartments
Merge pull request #5 from mattupstate/unrequired-embedded

Update `serialize` method to not inlcuded empty compartments