Fixed the class option machine so you can use an external hook properly.

Example wilki article and source code for an example forthcoming.