[foldcode addon] Support scanUp and minFoldSize options