Fixing array and hash based merge issues in the lookup mixin.