Fixed action serialization bug where values of 0 were being omitted. Added unit tests relating to defaults