Fix parameter hashing framework

* speeds up apply() for GPs
* make it possible to use preprocessed features with GPs