Fix `fromfunction`.  You know, probably.

There aren't docs or tests for this function.