fix custom decimal errors in xml and friends. #229