Added storing of field options when registering a field.