fix go.Lang.isDict() and replace prototype