Fix job xml datatype parsing

For issues #353 and #356