Reintroduce the listener machinery in FSTObjectOutput

For 1.x branch. Close #31 .