Allow attribute factories.
Fix callback bug and add a test.
Pin pimple version.