Yes, ill adopt jsdoc at some point.  Alternatively, we could move the hasMany check into serialize along side the other opts checks and just pass opts.type into serializeProperty.