Correction of whoami response type for backwards compatibility and output of mapped roles from whoami.