Fix for RoleInterface serialization problems under PHP 5.4+