If you have more than one DCArrayMapping implementation which uses the same key/attribute names, without this patch its pot luck which one you will get at runtime (likely the first one added).
This patch enforces a check to ensure the array mapper is one added for the parent object class of the array field being mapped.
This fixes https://github.com/dchohfi/KeyValueObjectMapping/issues/92
If you have more than one DCArrayMapping implementation which uses the same key/attribute names, without this patch its pot luck which one you will get at runtime (likely the first one added).
This patch enforces a check to ensure the array mapper is one added for the parent object class of the array field being mapped.
(Repost of earlier PR: https://github.com/dchohfi/KeyValueObjectMapping/pull/93 - closed due to branch finagling)