Correct issue #4992 : DATARANGE serialization type invalid

Pull request to correct the mapscript issue #4992