Document pattern and patternlength attribute on mapscript.styleObj (https://github.com/mapserver/mapserver/issues/4943)