Program parameters revamp

This PR re-implements shader parameter internals, while leaving the interface the same. It provides safer interfaces, and also has a serializable `ParamDictionary` that can be loaded from external sources.

Closes #150
I am wondering if an example would be useful here. Is this going to be client facing?