Generates an parameter id from a string.
Ids are used for optimized setters and getters on parameters.