Changed buffers to no longer special-case enums.

Enums are now mapped as int32 instead.
This reduces the amount of repeated code.