support using a function as the origin option

This was mentioned in the README, but the code didn't support passing a function as the origin option. This addresses that, as well as bumping minor version.