Restore PHP 5.3 compatibility

Removed the HasRole trait (moved into EntrustRole, which can be extended) and expanded a couple of array dereferences.