R: add 'weights' argument to optimal.community.

Support was already there at the underlying C level.