Added deserialization for service reference types.