Allow final processor to return a dictionary

Fixes #26.