hardened error messages for and completed key existence and map refinement checks for the StandardSession