fixing bug in eager singleton impl and improving some toStrings and errors messages