[AN] Store field ID instead of name.

Fixes #1422.