Allows some preprocessors to return an instance id.

This fixes issue #365.