Updated Composer dependencies and made the SerializableClosure class easier to extend. Fixes #9