Added useful error message responses in SS-API.
Fixed handling missing array values in SS-API
Fixed player's team not being correctly set when switching from spec to a team.