ivory-serialize: move library (with fixes) to ivory out of stm32.