misc tweaks - improve Object.toString handling