cbSelectReplace: make sure whatever item is selected in old select is still selected after it is replaced
Fix lint errors and build v0.6.1