Implement decimal serialization, and fix compile errors :/