@function setModelViewInstanceId

calculate and set modelViewInstanceId for model view instance object

@param {object} modelViewInstance
function setModelViewInstanceId (modelViewInstance) {
    // data to calculate unique id from
    var idData = {
        args: modelViewInstance.args,
        name: modelViewInstance.name,
        modelViewId: modelViewInstance.modelViewId,
    }
    // set id on model view instance
    modelViewInstance.modelViewInstanceId = stableId(idData)
}