Added enum support (closes #1).