[ORB-474] Fixed auto-generation of field ids in records