make limit_lines into a non-dialect option

and add test and docs