Improved type-checking of role in FCGI_BEGIN_REQUEST