Added the custom deserializer for array-to-list method.