check memberName is public when generating ids for embedded records