helpers.js: move *Build functions to methods of serializable() function