Add Generic instances for base types.