make sure we never attempt to go to second member in typeNames if there is not one

e.g. if classTypeName = "Something."
this is a bit dodgy - sometimes error occurs right before caret token

so we check if next token after erroneous one is the caret token
log Database Model refresh activity