Fix and minor method signature improvement to retrieveSObject