Added Generic instances for types in Style, Reference.

Closes #22.