grafting: Add the 'limit' option.

This option limits the number of features that are selected during grafting.