Allow patched SP and Encoders to be called with keyword arguments

Addresses #12, and also solves it for encoders.