Fixed the return types of some generic overloads for deserialization.