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