Bug fixes in r.polygon and r.line