Typed enums

add optional parameter to Library#enum and Enum.new to specify native type
fix automatic enum symbol lookup to match JRuby