Check for pk rather when updating EAV in table, solves #776

**Resolves issue #776.** Compare pks when updating a table element rather than matching the attribute type.