build system: minor doc fix.
serialization: introduce macro for simple serialization via base and use it in monomial.